package com.tanger.es;

import lombok.experimental.UtilityClass;

/**
 * @Description 通过用@UtilityClass标记你的类，lombok会自动生成一个抛出异常的私有构造函数，
 *              将你添加的任何显式构造函数标记为错误，并将该类标记为final。如果该类是一个内部类，
 *              该类也被标记为static。实用工具类的所有成员都被自动标记为静态。甚至是字段和内部类。
 * @Author Hchenbin
 * @Date 2023-12-11 14:05
 * @Version 1.0
 */
@UtilityClass
public class ESConstant {

    public static final String FIELD_NAME = "name";
    public static final String FIELD_NAME_EN = "nameEn";

    public static final String FIELD_SHOP_ID = "shopId";
    public static final String FIELD_AREA_CODE = "areaCode";

    public static final String FIELD_REMARK = "remark";
    public static final String FIELD_EVALUATE_SCORE = "evaluateScore";
    public static final String FIELD_PINYIN_INITIALS = "pinyinInitials";
    public static final String FIELD_PINYIN_INITIALS_KW = "pinyinInitials.keyword";
    public static final String FIELD_FIRST_LETTER = "firstLetter";

    public static final String FIELD_CATEGORYS = "categorys";
    public static final String FIELD_CATEGORYS_ID = "categorys.id";
    public static final String FIELD_CATEGORYS_TYPE = "categorys.type";
    public static final String FIELD_CATEGORY_PRIORITY = "categorys.priority";
    public static final String FIELD_CATEGORY_MEMBER_ID = "categorys.memberId";
    public static final String FIELD_CATEGORY_MEMBER_PRIORITY = "categorys.memberPriority";

    public static final String FIELD_BRAND = "brand";
    public static final String FIELD_BRAND_ID = "brand.id";
    public static final String FIELD_BRAND_NAME = "brand.name";
    public static final String FIELD_BRAND_NAME_EN = "brand.nameEn";
    public static final String FIELD_BRAND_CODE = "brand.code";

    public static final String FIELD_RECOMMENDS = "recommends";
    public static final String FIELD_RECOMMENDS_ID = "recommends.id";
    public static final String FIELD_RECOMMENDS_TYPE = "recommends.type";
    public static final String FIELD_RECOMMENDS_PRIORITY = "recommends.priority";
    public static final String FIELD_RECOMMENDS_MEMBER_ID = "recommends.memberId";
    public static final String FIELD_RECOMMENDS_MEMBER_PRIORITY = "recommends.memberPriority";

    public static final String FIELD_ACTIVITYS = "activitys";
    public static final String FIELD_ACTIVITYS_ID = "activitys.id";
    public static final String FIELD_ACTIVITYS_NAME = "activitys.name";
    public static final String FIELD_ACTIVITYS_NAME_EN = "activitys.nameEn";


    // 排序构造
    public static final String SORT_EVALUATE_SCORE = "EVALUATE_SCORE";
    public static final String SORT_PINYIN_INITIALS = "PINYIN_INITIALS";
    public static final String SORT_RECOMMEND = "RECOMMEND";
}
